package com.stgy.lease.web.api.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.stgy.lease.model.domain.RoomInfo;
import com.stgy.lease.web.api.dto.BaseSearchDto;
import com.stgy.lease.web.api.dto.RoomInfoSearchDto;
import com.stgy.lease.web.api.vo.RoomDetailVo;
import com.stgy.lease.web.api.vo.RoomItemVo;

/**
 * @author lingx
 * @description 针对表【room_info(房间信息表)】的数据库操作Service
 * @createDate 2024-08-28 11:00:29
 */
public interface RoomInfoService extends IService<RoomInfo> {


    //条件分页查询房间列表
    Page<RoomItemVo> pageItem(RoomInfoSearchDto searchDto);

    //根据id查询房间详情
    RoomDetailVo getDetailById(Long id);

    //根据公寓id分页查询房间列表
    Page<RoomItemVo> pageItemByApartmentId(BaseSearchDto baseSearchDto);
}
